package org.wattdepot.cli.commands;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;

/**
 * Tests the ListSensorDay class.
 * @author Jarret Mizo, Shaun Ramento
 *
 */
public class TestListSensorDay {
  /**
   * Tests the sourceExist method.
   * 
   * @throws Exception if there is a problem.
   */
  @Test
  public void testSensorDay() throws Exception {
    ListSensorDay sensorDay = new ListSensorDay();
    String validInput = sensorDay.listSensorDay("SIM_KAHE_1", "2009-11-23");
    String invalidSource = sensorDay.listSensorDay("another place", "2009-11-23");
    String invalidDay = sensorDay.listSensorDay("SIM_KAHE_1", "randomDay");
    boolean test = validInput.isEmpty();
    assertTrue("Checking invaild Source", invalidSource.isEmpty());
    assertTrue("Checking invalid Day", invalidDay.isEmpty());
    assertFalse("Check valid input", test);
  }
}
